package com.fs.book.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
public class Student {
    @Value("${stu1.id}")
    private Integer id;
    @Value("${stu1.name}")
    private String name;
    @Value("${stu1.love[0]}")
    private String[] love;

}
